import request from '@/utils/request'

// 查询经纪人审核列表
export function listBrokerApply(query) {
  return request({
    url: '/brokerApply/brokerApply/list',
    method: 'get',
    params: query
  })
}

// 查询经纪人审核详细
export function getBrokerApply(id) {
  return request({
    url: '/brokerApply/brokerApply/' + id,
    method: 'get'
  })
}

// 新增经纪人审核
export function addBrokerApply(data) {
  return request({
    url: '/brokerApply/brokerApply',
    method: 'post',
    data: data
  })
}

// 修改经纪人审核
export function updateBrokerApply(data) {
  return request({
    url: '/brokerApply/brokerApply',
    method: 'put',
    data: data
  })
}

// 删除经纪人审核
export function delBrokerApply(id) {
  return request({
    url: '/brokerApply/brokerApply/' + id,
    method: 'delete'
  })
}
